package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 中台-功能链接(没动态路由不适用)
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminMenu extends Model<AdminMenu> {

    private static final long serialVersionUID=1L;

    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    private String menuUrl;

    private Integer moduleId;

    /**
     * 是否在sidebar里出现
     */
    private Integer isShow;

    /**
     * 在线状态，还是下线状态，即可用，不可用。
     */
    private Integer online;

    /**
     * 描述
     */
    private String menuDesc;

    /**
     * 上一级菜单
     */
    private Integer fatherMenu;

    /**
     * 组件地址
     */
    private String component;

    /**
     * 对外显示标题
     */
    private String menuTitle;

    private String menuIcon;


    public static final String MENU_ID = "menu_id";

    public static final String MENU_URL = "menu_url";

    public static final String MODULE_ID = "module_id";

    public static final String IS_SHOW = "is_show";

    public static final String ONLINE = "online";

    public static final String MENU_DESC = "menu_desc";

    public static final String FATHER_MENU = "father_menu";

    public static final String COMPONENT = "component";

    public static final String MENU_TITLE = "menu_title";

    public static final String MENU_ICON = "menu_icon";

    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }

}
